Skip to content

Conversation

@kumaryash90
Copy link
Member

@kumaryash90 kumaryash90 commented Jan 9, 2025

TOOL-3013
TOOL-3014

Notes for the reviewer

Anything important to call out? Be sure to also clarify these in your comments.

How to test

Unit tests, playground, etc.


PR-Codex overview

This PR focuses on updating the deployment version and contract identifiers for various components in the thirdweb library, ensuring proper version handling for published contracts.

Detailed summary

  • Updated version handling in custom-contract.tsx.
  • Changed contractId from "Forwarder" to "ForwarderEOAOnly" in deploy-pack.ts.
  • Added version to DeployMarketplaceContractOptions in deploy-marketplace.ts.
  • Updated getAllDefaultConstructorParamsForImplementation to include contractId.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@kumaryash90 kumaryash90 requested review from a team as code owners January 9, 2025 22:23
@vercel
Copy link

vercel bot commented Jan 9, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 10, 2025 7:00pm
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 10, 2025 7:00pm
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 10, 2025 7:00pm
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 10, 2025 7:00pm

@graphite-app
Copy link
Contributor

graphite-app bot commented Jan 9, 2025

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 9, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 45.65 KB (0%) 913 ms (0%) 410 ms (+86.34% 🔺) 1.4 s
thirdweb (cjs) 115.43 KB (0%) 2.4 s (0%) 772 ms (+30.43% 🔺) 3.1 s
thirdweb (minimal + tree-shaking) 5.59 KB (0%) 112 ms (0%) 161 ms (+587.68% 🔺) 273 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 27 ms (+286.77% 🔺) 37 ms
thirdweb/react (minimal + tree-shaking) 19.21 KB (0%) 385 ms (0%) 99 ms (+97.48% 🔺) 484 ms

@changeset-bot
Copy link

changeset-bot bot commented Jan 9, 2025

🦋 Changeset detected

Latest commit: 42a313f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
thirdweb Patch
@thirdweb-dev/wagmi-adapter Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the Dashboard Involves changes to the Dashboard. label Jan 9, 2025
@kumaryash90 kumaryash90 changed the title Deploy correct version of published contract [SDK/Dashboard] Fix: Deploy correct version of published contract Jan 9, 2025
@kumaryash90 kumaryash90 changed the title [SDK/Dashboard] Fix: Deploy correct version of published contract [SDK/Dashboard] Fix: Deploy specified version of published contracts Jan 9, 2025
@codecov
Copy link

codecov bot commented Jan 10, 2025

Codecov Report

Attention: Patch coverage is 88.88889% with 1 line in your changes missing coverage. Please review.

Project coverage is 54.81%. Comparing base (7fb5ce1) to head (42a313f).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
.../extensions/prebuilts/get-required-transactions.ts 75.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5923      +/-   ##
==========================================
- Coverage   54.83%   54.81%   -0.03%     
==========================================
  Files        1141     1141              
  Lines       60897    60903       +6     
  Branches     5126     5126              
==========================================
- Hits        33393    33384       -9     
- Misses      26778    26795      +17     
+ Partials      726      724       -2     
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from 7fb5ce1
packages 52.45% <88.88%> (-0.03%) ⬇️

*This pull request uses carry forward flags. Click here to find out more.

Files with missing lines Coverage Δ
...web/src/extensions/prebuilts/deploy-marketplace.ts 89.55% <100.00%> (+0.07%) ⬆️
...s/thirdweb/src/extensions/prebuilts/deploy-pack.ts 82.75% <100.00%> (ø)
...rdweb/src/extensions/prebuilts/deploy-published.ts 84.31% <100.00%> (+0.12%) ⬆️
.../extensions/prebuilts/get-required-transactions.ts 62.76% <75.00%> (+0.06%) ⬆️

... and 5 files with indirect coverage changes

@kumaryash90 kumaryash90 added the merge-queue Adds the pull request to Graphite's merge queue. label Jan 10, 2025
Copy link
Member Author

kumaryash90 commented Jan 10, 2025

Merge activity

  • Jan 10, 1:56 PM EST: The merge label 'merge-queue' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Jan 10, 1:56 PM EST: A user added this pull request to the Graphite merge queue.
  • Jan 10, 2:00 PM EST: A user merged this pull request with the Graphite merge queue.

…5923)

TOOL-3013
TOOL-3014

## Notes for the reviewer
Anything important to call out? Be sure to also clarify these in your comments.

## How to test
Unit tests, playground, etc.

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on updating the deployment process for contracts in the `thirdweb` package, including changes to version handling and contract IDs.

### Detailed summary
- Updated `version` handling in the `custom-contract.tsx` file.
- Changed `contractId` from `"Forwarder"` to `"ForwarderEOAOnly"` in `deploy-pack.ts`.
- Added `version` to the options in `deployMarketplaceContract`.
- Modified `getAllDefaultConstructorParamsForImplementation` to use a dynamic `contractId`.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dashboard Involves changes to the Dashboard. merge-queue Adds the pull request to Graphite's merge queue. packages SDK Involves changes to the thirdweb SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants